/**
 * 处理手机号，中间6位加上*
 * **/
export function handlePhone(phone) {
    let pre =  phone.substr(0,3);
    let next = phone.substr(9,2);
    return pre + '******' + next;
}

/**
 * 处理身份证信息，只展示首4位+末2位
 * @param {*} params
 */
export function handleIdCard(idCard) {
    let pre = idCard.substr(0, 4);
    let next = idCard.substring(idCard.length -2, idCard.length)
    return pre + '************' + next;
}
